import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 1. 引入你需要的组件
import vant from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import axios from 'axios'
import VueAxios from 'vue-axios'

//配置接口的前置路径
axios.defaults.baseURL = 'http://localhost:8888/api/';

axios.defaults.headers.common['token'] = store.state.token;

createApp(App).use(store).use(vant).use(VueAxios, axios).use(router).mount('#app')
